Skip to content

feat(qt): 功能键编码 (#30) - #240

Merged
JavaZeroo merged 1 commit into
mainfrom
feat/qt-function-keys
Oct 30, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
feat/qt-function-keys

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

把功能键映射接到 Qt 产品入口(与 Win32 shell 的编码表一致):

键 字节
F1–F4 ESC O P/Q/R/S
F5–F12 ESC [ 15~ / 17~ / 18~ / 19~ / 20~ / 21~ / 23~ / 24~

两者共用同一张表(Win32 侧已在 #239 合入并测试)。

验证

build-qt 构建通过;本地 Qt 冒烟 status: passed(算术 750、child exit 37、清理已验证)。另核验 terminal_widget.hpp 中无原始 ESC 字节(0),全部为文本转义。

边界

  • 带 Ctrl/Alt 的功能键仍交给 Qt 默认处理(与既有方向键分支一致);
  • 未做像素级或接收字节级断言,功能键字节由 Win32 侧 keyboard_test 覆盖同一张表。

Refs #30

The Qt widget uses the same SS3 and xterm tilde table as the Win32 encoder, so both product entries send identical function-key bytes.
@JavaZeroo
JavaZeroo merged commit 57606be into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant